using System;

namespace WMVConvert.Metadata
{
	public class LanguageCollection
	{
		IWMLanguageList languageList;

		internal LanguageCollection(IWMLanguageList languageList)
		{
			this.languageList = languageList;
		}

		public ushort Add(string languageName)
		{
			ushort index = 0;
			languageList.AddLanguageByRFC1766String(languageName, out index);
			return index;
		}

	}
}
